home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / sharexe.zip / FINDSRC.MAN < prev    next >
Text File  |  1988-02-21  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. FINDSRC(1)          UNIX Programmer's Manual           FINDSRC(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      findsrc - walk directories, trying to find source files
  10.  
  11. SYNOPSIS
  12.      findsrc [ -. ] [ -dy_or_n ] [ -ooutput_file ] [ -R ] [ -S ]
  13.      [ -v ] [ file... ]
  14.  
  15. DESCRIPTION
  16.      Findsrc recursively examines all directories and files
  17.      specified on the command line, and determines, based on the
  18.      file name, whether the file contains source code or not.
  19.      All directories are listed first, followed by all regular
  20.      files, with one item per line.
  21.  
  22.      If findsrc is unable to make a decision, it invokes the
  23.      file(1) command, and prompts the user for a decision.  In
  24.      reply to the prompt, type the letter ``y'' or ``n'' (either
  25.      case); RETURN means yes.  If the reply starts with an excla-
  26.      mation point, the rest of the line is passed off to a sub-
  27.      shell and the question is repeated.  The ``-d'' option may
  28.      be used with an argument of ``y'' or ``n'' to by-pass the
  29.      interaction, and provide a default answer.
  30.  
  31.      The ``-o'' option may be used to specify an output filename.
  32.      This is designed to prevent confusion if a command like the
  33.      following is executed:
  34.           findsrc . * >LIST
  35.  
  36.      By default, findsrc ignores files whose names begin with a
  37.      period, like ``.newsrc'' or ``.tags''; such files may be
  38.      included by using the ``-.'' option.  Findsrc also normally
  39.      ignores RCS and SCCS files and directories; using either the
  40.      ``-R'' or ``-S'' option causes both to be included.
  41.  
  42.      Findsrc normally lists only the names of those files that
  43.      have been selected.  If the ``-v'' option is used, rejected
  44.      files are also listed preceeded by the word ``PUNTED.''
  45.  
  46.      If no files are specified on the command line, the program
  47.      operates as a filter, reading a list of files and direc-
  48.      tories from the standard input, one per line.
  49.  
  50. SEE ALSO
  51.      makekit(1L).
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Printed 2/21/88               LOCAL                             1
  64.  
  65.  
  66.  
  67.